package com.xubeizhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xubeizhi.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper extends BaseMapper<Product> {

    Integer soldProductStatus(Product product);

    List<Product> listProduct(@Param("status") String status,@Param("removeStatus") String removeStatus);

    List<Product> selectProductList(@Param("productName") String productName,@Param("status") String status,@Param("removeStatus") String removeStatus);

    Integer removeProduct(Integer id);
}
